﻿/**********************************************************************
 * @file   OperatorsJunctionLine.h
 * @brief  点连接操作器
 * @author BaGuijun (baguijun@163.com)
 * @date   2024-11-12
 *********************************************************************/
#ifndef _OperatorsJunctionLine_H
#define _OperatorsJunctionLine_H

#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
#include "OperatorsInterface/ParaWidgetInterfaceOperator.h"

namespace ModelOper
{
    /**
     * @brief  点连接操作器
     * @author BaGuijun (baguijun@163.com)
     * @date   2024-11-12
     */
    class OperatorsJunctionLine :public EventOper::ParaWidgetInterfaceOperator
    {
        Q_OBJECT;
    public:
        /**
         * @brief    Construct a new Operators Open object
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-11-12
         */
        explicit OperatorsJunctionLine() = default;
        /**
         * @brief    Destroy the Operators Open object
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-11-12
         */
        virtual ~OperatorsJunctionLine() = default;
        /**
         * @brief    执行界面操作
         * @return   true     执行成功
         * @return   false     执行失败
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-11-12
         */
        virtual bool execGUI() override;
        /**
         * @brief    执行读入操作
         * @return   true     执行成功
         * @return   false     执行失败
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-11-12
         */
        virtual bool execProfession() override;
    private slots:
        ;
        /**
         * @brief    拾取结束槽函数
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-11-12
         */
        void slotPickOverEvent();
    };

    // 按钮注册相关操作
    Register2FITKOperatorRepo(actionCreateJunctionLine, OperatorsJunctionLine);
    Register2FITKOperatorRepo(actionEditJunctionLine, OperatorsJunctionLine);
    Register2FITKOperatorRepo(actionDeleteBatchLine, OperatorsJunctionLine);
}

#endif